import React, { useContext } from 'react'
import { ColorContext } from './Color'

function ShowArea() {
  let { color } = useContext(ColorContext)
  return (
    <div>
      <p style={{ color: color }}>文字的颜色是{color}</p>
    </div>
  )
}

export default ShowArea
